import instance from "./axios";

const smsCouponPage=(data)=>{
    return instance.request({
        url:'mall/sms-coupon/page',
        method:'post',
        data
    })
}
const smsCouponDelId=(id)=>{
    return instance.request({
        url:`/mall/sms-coupon/del/${id}`
    })
}
const smsCouponAdd=(data)=>{
    return instance.request({
        url:'mall/sms-coupon/add',
        method:'post',
        data
    })
}
const smsCouponEdit=(data)=>{
    return instance.request({
        url:'mall/sms-coupon/edit',
        method:'post',
        data
    })
}

const smsCouponOne = (id) => {
    return instance.request({
        url:`mall/sms-coupon/one/${id}`,
        method:'get'
    })
}

export {
    smsCouponPage,
    smsCouponDelId,
    smsCouponAdd,
    smsCouponEdit,
    smsCouponOne
}
